import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import pinia from "./store";
import Particles from "@tsparticles/vue3";
import { loadSlim } from "@tsparticles/slim";

import "@/assets/css/common.css";
import "./permission";
import "normalize.css";
import piniaPluginPersist from "pinia-plugin-persist";
//持久化
pinia.use(piniaPluginPersist);
//国际化
import i18n from "./lang";
const app = createApp(App);
app.use(router);
app.use(pinia);
app.use(Particles, {
  init: async (engine) => {
    await loadSlim(engine);
  },
});
app.use(i18n);
app.mount("#app");
